package model

import (
	"github.com/garyburd/redigo/redis"
)

type UserDao struct {
	pool *redis.Pool
}

//1.根据一个用户id返回用户实例  或者err
func (ud *UserDao) getUserById(conn redis.Conn,id int)(user *User,err error){
	//通过给定的id 去查询这个用户
	conn.
}